//
//  MainView.m
//  Daybook
//
//  Created by dllo on 16/5/18.
//  Copyright © 2016年 zhangbin. All rights reserved.
//

#import "MainView.h"
#import "Common.h"

@interface MainView ()

@property (nonatomic, retain) UIButton *leftButton;

@end
@implementation MainView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createView];
    }
    return self;
}

- (void)createView {
    self.backgroundColor = [UIColor yellowColor];
    
    self.leftButton = ({
        UIButton *tempButton = [UIButton buttonWithType:UIButtonTypeCustom];
        tempButton.frame = CGRectMake(50, 116, 35, 35);
        [self addSubview:tempButton];
        [tempButton setTitle:@"抽屉" forState:UIControlStateNormal];
        [tempButton addTarget:self action:@selector(jumpToLeftView:) forControlEvents:UIControlEventTouchUpInside];
        tempButton;
    });
}

- (void)jumpToLeftView:(UIButton *)button {
    
}

@end
